<#--
***************************************************************************************
* 正元协同办公系统J2EE版
* 声明：金华正元计算机工程有限公司版权所有,
* 名称：wfStepUserList.ftl
* 功能：wfStepUser列表页面
* 来源：本页由wfStepUserAction!list.shtml跳转过来。
* 去向：
*    	本页可以跳转到wfStepUserForm.ftl
* 修改日志：
*			修改者及修改内容简述。
*			姓名：系统        时间：2007-06-08  内容：生成本页面
****************************************************************************************	
-->
<#include "/common/pager_style/commonList.ftl" encoding="UTF-8">
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/jquery.artDialog.source.js?skin=chrome"></script>
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/plugins/iframeTools.js"></script>

<#-- 定义本页面能有哪些按钮 -->
<#if editState="isDoing">
	<#assign buttonsName={"list":"刷新","agree":"同意完结","print":"导出excel","back":"返回"}>
<#elseif editState="needDoing">
	<#assign buttonsName={"list":"刷新","isfinish":"已完成","later","申请延期","refuse","不同意件申请","print":"导出excel","back":"返回"}>
<#elseif editState="isFinish">
	<#assign buttonsName={"list":"刷新","print":"导出excel","back":"返回"}>
<#elseif editState="newdb" &&  (currentUser?exists&&currentUser.orgId?exists&&currentUser.orgId=7) >
	<#assign buttonsName={"list":"刷新","agree":"同意完结","later","申请延期","refuse","不同意件申请","directReturn":"申请退文","newdbRemove":"删除","print":"导出excel","deal":"转收文","viewWorkflow":"查看流程","back":"返回"}>
<#elseif editState="newdb" &&  (currentUser?exists&&currentUser.orgId?exists&&currentUser.orgId!=7) >
	<#assign buttonsName={"list":"刷新","agree":"同意完结","later","申请延期","refuse","不同意件申请","directReturn":"申请退文","newdbRemove":"删除","print":"导出excel","viewWorkflow":"查看流程","back":"返回"}>
<#elseif editState="revoke">
	<#assign buttonsName = {"revokeRecord":"撤销转收文"}>
<#else>
	<#assign buttonsName={"list":"刷新","print":"导出excel","back":"返回"}><#-- ,"remove":"删除","add":"增加"去掉删除按钮 -->
</#if>
<#assign buttonsImage = {"revokeRecord":"check.gif","deal":"check.gif","viewWorkflow":"view.gif","later":"detail.gif","directReturn":"detail.gif","refuse":"detail.gif","again":"detail.gif","agree":"detail.gif","isfinish":"detail.gif","recovery":"detail.gif","lwRecovery":"detail.gif","newdbRemove":"remove.gif"}>
<#--	如果需要特别的定义按钮的图片，请参照以下格式，不需要则请删除本行及下一行：	-->
<style type="text/css">
	.tbl_list {text-align: left;}
	th	{
		align:center
	}
	
</style>
<!--[if IE 8]>
<style>
.aui_title {position:absolute; top:0;}
</style>
<![endif]-->




<script language="javascript">

var actName="weekRecordAction";
var domainName="weekRecord";
	function demo()	{
		//此方法为用户自定义的操作行为
	}
	$(function (){
	//alert(window.parent.document.getElementById("frameSide"));
		//alert($("#isFormSubmitSuccess").val());
		if($("#isFormSubmitSuccess").val()==1){
			$("#isFormSubmitSuccess").val("false")
			alert("提交成功");
		}else if($("#isFormSubmitSuccess").val()==2){
			$("#isFormSubmitSuccess").val("false")
			alert("回收成功");
		}else if($("#isFormSubmitSuccess").val()==3){
			$("#isFormSubmitSuccess").val("false")
			alert("提交成功");
		}else if($("#isFormSubmitSuccess").val()==4){
			$("#isFormSubmitSuccess").val("false")		
			alert("已向主办单位发送回收申请");
		}else if($("#isFormSubmitSuccess").val()==5){
			$("#isFormSubmitSuccess").val("false")
			alert("删除草稿成功");
		}else if($("#isFormSubmitSuccess").val()==6){
			$("#isFormSubmitSuccess").val("false")
			alert("该事项尚在提交审批环节,请直接联系本单位一把手");
		}else if($("#isFormSubmitSuccess").val()==7){
			$("#isFormSubmitSuccess").val("false")
			alert("该事项已发送回收申请,请联系主办单位进行相应处理");
		}else if($("#isFormSubmitSuccess").val()==8){
			$("#isFormSubmitSuccess").val("false")
			alert("已向发文单位发送回收申请");
		}else if($("#isFormSubmitSuccess").val()==9){
			$("#isFormSubmitSuccess").val("false")
			alert("该事项已发送回收申请,请联系发文单位进行相应处理");
		}else if($("#isFormSubmitSuccess").val()==10){
			$("#isFormSubmitSuccess").val("false")
			alert("主办单位已发送相关审核申请,无法收回");
		}else if($("#isFormSubmitSuccess").val()==11){
			$("#isFormSubmitSuccess").val("false")
			alert("办结评价成功");
		}else if($("#isFormSubmitSuccess").val()==12){
			$("#isFormSubmitSuccess").val("false")
			alert("事项已提交至单位负责人处签发，请提醒单位负责人及时处理。");
		}else if($("#isFormSubmitSuccess").val()==13){
			$("#isFormSubmitSuccess").val("false")
			alert("退回成功");
		}else if($("#isFormSubmitSuccess").val()==14){
			$("#isFormSubmitSuccess").val("false")
			alert("已转收文,无法退回");
		}else if($("#isFormSubmitSuccess").val()==15){
			$("#isFormSubmitSuccess").val("false")
			alert("存在延期申请,无法退回");
		}			
	});
	
	//导出excel
		function opt_print(){
		    var oldAction = $("form").eq(0).attr("action");
			document.forms[0].action='weekRecordAction!exportExecl.shtml';
			document.forms[0].submit();
			document.forms[0].action=oldAction;		
	}
	
	
	function opt_viewWorkflow(){
		var num = $(":checkbox:checked").length;
		if (num==0) { alert('请选择你要查看的文件！');	return false; }
		if (num>1)	{ alert('只能选择一份文件查看，请您重新选择！');	return false;}
		var wfEntityId=$(":checkbox[name=idKeys]:checked").parent().parent().find("span[name='weekRecord\\.wfEntityId']").text();
		if(isEmpty($.trim(wfEntityId))){
			alert("当前文件不存在对应的流程!");
		}else{
				var formAction=$("form").eq(0).attr("action");
			  var winName = getNewWinName();
		      $("form").eq(0).attr("action",'wfEntityAction!detail.shtml?wfEntity.id='+wfEntityId).attr("target",winName);
			  openNewWin("",null,null,winName);
			  $("form").eq(0).submit();
			  //恢复原form的action值
			  $("form").eq(0).attr("action",formAction).attr("target","");
		}
	}
	
	/**
	 * 处理
	 */
	function opt_deal() {

		var num = $(":checkbox:checked").length;
		if (num==0) { alert('请选择你要进行收文的文件！');	return false; }
		if (num>1)	{ alert('只能选择一份文件进行登记，请您重新选择！');	return false;}
		$.ajax({
		   type: 	"POST",
		   url: 	"wfEntityAction!getSwDefineInfos.shtml",
		   dataType:	"json",
		   async:false,
		   success: function(data){
		   $("#wfDefineInfoId").empty(); 
		  	 for(var i=0;i<data.length;i++){
			 	$("#wfDefineInfoId").append("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
			 }
			}
		});
		var wfEntityId=$(":checkbox[name=idKeys]:checked").parent().parent().find("span[name='weekRecord\\.wfEntityId']").text();
		if(isEmpty($.trim(wfEntityId))){
			 // 弹出框显示转成新流程信息编辑页面
			artDialog({
			    title: '收文登记',
			    content: document.getElementById('optConvert'),
			    width:700,
			    lock:true,
			    padding:"0px 10px 5px 10px",
			    ok: function(){
			    		this.close();
				   		convertOk();
						
			    },
			    cancel:true
			});
		}else{
			  alert("当前文件已转收文");
				return;
			  <#-- var r=confirm("当前文件已转收文，确认重新转入?")
			  if(r==true){
			  	artDialog({
			    title: '收文登记',
			    content: document.getElementById('optConvert'),
			    width:700,
			    lock:true,
			    padding:"0px 10px 5px 10px",
			    ok: function(){
			    		this.close();
				   		convertOk();
						
			    },
			    cancel:true
			});
			  }else{
			  	return;
			  } -->
		}
	}
	
	function convertOk(){
	    if(isEmpty($("#wfDefineInfoId").val())){
	        alert("请选择需要使用的收文流程！");
	        return;
	    }
	    $.ajax({
		   type: 	"POST",
		   url: 	actName + "!swRegister.shtml",
		   data : 		{"wfDefineInfoId":$("#wfDefineInfoId").val(),"weekRecord.id":$(":checkbox[name=idKeys]:checked").val()},
		   dataType:	"json",
		   async:false,
		   success: function(data){
		   		if(typeof(data.fail)!="undefined"){
					alert("转收文时出错：" + data.fail);
					return;
				}
		   		 var formAction=$("form").eq(0).attr("action");
		  		  var winName = getNewWinName();
			      $("form").eq(0).attr("action",'wfEntityAction!detail.shtml?wfEntity.id='+data.info).attr("target",winName);
				  openNewWin("",null,null,winName);
				  $("form").eq(0).submit();
				  
				  //恢复原form的action值
			      $("form").eq(0).attr("action",formAction).attr("target","");
			      window.location.reload();
			}
		});
		
	}
	
	function opt_newdbRemove(){			
		if(window.confirm('确定要删除该事项吗？')){           	
			if($(":checkbox[name=idKeys]:checked").length>1){
				alert("只能选择一条数据！");
				return;
			}
			if($(":checkbox[name=idKeys]:checked").length==0){
				alert("请先选择一条数据！");
				return;
			}		
			$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());			
			$("form").eq(0).attr("action",actName + '!newdbRemove.shtml');
			$("form").eq(0).submit();				
         	return true;
       }else{
         //alert("取消");
         return false;
      }		
	}
	
	
	
	function opt_agree(){
	
		if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());	
		//判断是否办理中,办理中无法完结
//			$.ajax({
//		   type: 	"POST",
//		   url: 	"weekRecordAction!isFinish.shtml",
//		   data: 	"weekFormId=" + encodeURI($("weekFormId").val()),		// 不进行编码的话，传递到后台识别不出来
//		   dataType:	"json",
//		   success: function(data){
//				if(typeof(data.fail)!="undefined"){
//					alert("取得分类信息时出错：" + data.fail);
//					return;
//				}
//				$("#arcInfo\\.keyword").val(data.info);
//				alert("本文的提取的关键字为：" + data.info);
//		   }
//		});
		//alert($(":checkbox[name=idKeys]:checked").val());	
		
			
		$("form").eq(0).attr("action",actName + '!agree.shtml');
		$("form").eq(0).submit();					
		
		
	//获取多个value()值
	// obj = document.getElementsByName("idKeys");
    //	check_val = [];
   	// 	for(k in obj){
    //    		if(obj[k].checked)
     //      		 check_val.push(obj[k].value);
    //		}
    //	alert(check_val);	
	
	
	}
//================	
	function opt_recovery(){
		if(window.confirm('确定要回收该事项吗？')){           	
			if($(":checkbox[name=idKeys]:checked").length>1){
				alert("只能选择一条数据！");
				return;
			}
			if($(":checkbox[name=idKeys]:checked").length==0){
				alert("请先选择一条数据！");
				return;
			}
		
			$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());
			$("form").eq(0).attr("action",actName + '!recovery.shtml');
			$("form").eq(0).submit();				
             return true;
              }else{
                 //alert("取消");
                 return false;
             }
	
							
		};
	
		function opt_lwRecovery(){
		if(window.confirm('确定要回收该事项吗？')){           	
			if($(":checkbox[name=idKeys]:checked").length>1){
				alert("只能选择一条数据！");
				return;
			}
			if($(":checkbox[name=idKeys]:checked").length==0){
				alert("请先选择一条数据！");
				return;
			}
		
			$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());
			$("form").eq(0).attr("action",actName + '!lwRecovery.shtml');
			$("form").eq(0).submit();				
             return true;
              }else{
                 //alert("取消");
                 return false;
             }
							
		};
	
	
//=======================function agree() end==============================	
function opt_isfinish(){
	
		if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());	
		//判断是否办理中,办理中无法完结
//			$.ajax({
//		   type: 	"POST",
//		   url: 	"weekRecordAction!isFinish.shtml",
//		   data: 	"weekFormId=" + encodeURI($("weekFormId").val()),		// 不进行编码的话，传递到后台识别不出来
//		   dataType:	"json",
//		   success: function(data){
//				if(typeof(data.fail)!="undefined"){
//					alert("取得分类信息时出错：" + data.fail);
//					return;
//				}
//				$("#arcInfo\\.keyword").val(data.info);
//				alert("本文的提取的关键字为：" + data.info);
//		   }
//		});
		//alert($(":checkbox[name=idKeys]:checked").val());	
		
			
		$("form").eq(0).attr("action",actName + '!isfinish.shtml');
		$("form").eq(0).submit();					
		
		
	//获取多个value()值
	// obj = document.getElementsByName("idKeys");
    //	check_val = [];
   	// 	for(k in obj){
    //    		if(obj[k].checked)
     //      		 check_val.push(obj[k].value);
    //		}
    //	alert(check_val);	
	
	
	}
	
	function opt_later(){
		if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());	
		$("#weekReview\\.applyType").val("1");
		var id = $(":checkbox[name=idKeys]:checked").eq(0).val();
		$.ajax({
		   type: 	"POST",
		   url: 	"weekReviewAction!preReview.shtml",
		   data: 	{"weekFormId":id,"applyType":"1","fromType":$("#fromType").val()},	
		   dataType:	"json",
		   success: function(data){
				if(typeof(data.fail)!="undefined"){
					openArgDialog('审核',data.fail);
					return;
				}
				ajaxSave();
		     }
		});
	}
	
	function opt_refuse(){
		if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());	
		$("#weekReview\\.applyType").val("2");
		var id = $(":checkbox[name=idKeys]:checked").eq(0).val();
		$.ajax({
		   type: 	"POST",
		   url: 	"weekReviewAction!preReview.shtml",
		   data: 	{"weekFormId":id,"applyType":"2","fromType":$("#fromType").val()},	
		   dataType:	"json",
		   success: function(data){
				if(typeof(data.fail)!="undefined"){
					openArgDialog('审核',data.fail);
					return;
				}
				ajaxSave();
		     }
		});
	}
	
	function opt_again(){
	if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		$("#weekRecord\\id").val($(":checkbox[name=idKeys]:checked").val());
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());		
		$("#weekReview\\.applyType").val("重办审核");
		var id = $(":checkbox[name=idKeys]:checked").eq(0).val();
		$.ajax({
		   type: 	"POST",
		   url: 	"weekReviewAction!isOK.shtml",
		   data: 	{"weekFormId":id,"applyType":$("#weekReview\\.applyType").val()},	
		   dataType:	"json",
		   success: function(data){
				if(typeof(data.fail)!="undefined"){
					artDialog({
			    title: '审核',
			     width:"20%",
			     height:"20",
			    content: data.fail,
			    lock: true,
			    ok: function(){
			    },
			    cancel:false
			});
			return;
				}
				ajaxSave();
		   }
		});
	}
	
	//退文申请操作
	function opt_directReturn(){
		if($(":checkbox[name=idKeys]:checked").length>1){
			alert("只能选择一条数据！");
			return;
		}
		if($(":checkbox[name=idKeys]:checked").length==0){
			alert("请先选择一条数据！");
			return;
		}
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());	
		$("#weekReview\\.applyType").val("5");
		var id = $(":checkbox[name=idKeys]:checked").eq(0).val();
		$.ajax({
		   type: 	"POST",
		   url: 	"weekReviewAction!preReview.shtml",
		   data: 	{"weekFormId":id,"applyType":"5","fromType":$("#fromType").val()},	
		   dataType:	"json",
		   success: function(data){
				if(typeof(data.fail)!="undefined"){
					openArgDialog('审核',data.fail);
					return;
				}
				ajaxSave();
		     }
		});
	}
	
	
	function ajaxSave(){
	    var param=new Array();
		param.push("applyType="+$("#weekReview\\.applyType").val());
		param.push("recordId="+$("#weekRecord\\.id").val());
		artDialog.open(encodeURI("weekReviewAction!toReviewApply.shtml?"+param.join("&")),{
					title:	"申请审核",
					lock:	true,
					width: "60%",
					height: "60%",
					okVal:"提交",
					ok:		function(){
							var $obj = $(this.iframe.contentWindow.document);
							var formdata = $obj.find("form").serializeArray();
							var d = {};
							$.each(formdata, function() {
						       d[this.name] = this.value;
						    });
							var isRight = true;
							var check = checkApplyForm($obj);
							if(!check){
								return false;
							}
							// 保存数据
							$.ajax({
								type : "POST",
								url : "weekReviewAction!ajaxSave.shtml",
								data : d,
								success : function(data) {
									if(typeof(data.fail)!="undefined"){
										var message = "申请提交失败:" + data.fail;
										openArgDialog('申请审核',message);
										isRight = false;
										return false;
									}else{
										var message ="提交成功！";
										openArgDialog('申请审核',message);
									}
								},
								error : function(XMLHttpRequest, textStatus, errorThrown) { 
							        //alert(XMLHttpRequest.status); 
							        //alert(XMLHttpRequest.readyState); 
                                    //alert(textStatus); 
									isRight = false;
									var message ="申请提交失败!";
									openArgDialog('申请审核',message);
								}
							});
							return isRight;					
						},
					cancel:	true
				});
	}
	
	// 执行排序功能
	function do_sort(orderBy, defaultOrder) {
			do_sort(orderBy,defaultOrder,"");
		}
	function do_sort(orderBy, defaultOrder,formId) {
		if(orderBy=='weekRecord.review.applyType'||orderBy=='weekRecord.review.reviewBy.userName'||orderBy=='weekRecord.review.opinion'){
				alert('不支持审核类型,审核人,审核意见的排序');
				return false;
		}
		
		
		var $form = $("form");
		if(!isEmpty(formId)){
			$form = $("form#" + formId)
		}
		if ($("#page\\.orderBy",$form).val() == orderBy) {
			if ($("#page\\.order",$form).val() == "") {
				$("#page\\.order",$form).val(defaultOrder);
			}else if ($("#page\\.order",$form).val() == "desc") {
				$("#page\\.order",$form).val("asc");
			}else if ($("#page\\.order",$form).val() == "asc") {
				$("#page\\.order",$form).val("desc");
			}
		}else {
			$("#page\\.orderBy",$form).val(orderBy);
			$("#page\\.order",$form).val(defaultOrder);
		}
		$form.submit();
		return false;
	}

function opt_revokeRecord(){
	if(window.confirm('确定撤销转收文的状态?')){
		var num = $(":checkbox:checked").length;
		if (num==0) { alert('请选择你要进行撤销的文件！');	return false; }
		if (num>1)	{ alert('只能选择一份文件进行撤销，请您重新选择！');	return false;}
		$("#weekFormId").val($(":checkbox[name=idKeys]:checked").val());
		$("form").eq(0).attr("action",actName + '!revokeRecord.shtml?');
		$("form").eq(0).submit();	
        return true;
      }else{
        return false;
      }		
}

function openArgDialog(title,message){
	if(title==null || title==""){
		title = "提示";
	}
	if(message==null || message==""){
		message = "错误";
	}
	artDialog({
	    title: title,
	    content: message,
	    lock: true,
	    ok: function(){
	    },
	    cancel:false
	});
}
/**
 * 审核表单校验
 * @param obj
 * @returns
 */
function checkApplyForm($obj){
    var l = 0;
    if(typeof($obj.find("#weekReview\\.applyReason").eq(0).val())=="string"){
    	  l = $obj.find("#weekReview\\.applyReason").eq(0).val().length;
    }
    if(l>500){
    	alert("申请理由不能超过500个字符！");
    	return false;
    }
    if(l==0){
    	alert("申请理由不能为空");
    	return false;
    }
    var applyType = $obj.find("#weekReview\\.applyType").eq(0).val();
    if(applyType==1){
    	if($obj.find("#weekReview\\.delayDate").eq(0).val()=="" || $obj.find("#weekReview\\.delayDate").eq(0).val() == null){
	    	alert("申请延期时间不能为空");
	    	return false;
	    }
    }
    var reviewBy = $obj.find("#weekReview\\.reviewBy\\.id").eq(0).val();
    if(reviewBy==null || reviewBy=="" || typeof reviewBy== "undefined"){
    	alert("审核人不能为空");
    	return false;
    }
	return true;
}	
//-->
</script>
<style>
.ui-com-tbl {font-size:16px;}
.ui-com-tbl tbody td {line-height:1.3 !important; min-height:30px; padding:5px;}
</style>
</head>
<body  scroll="auto" class="frameList">
<form name="form1" action="weekRecordAction!list.shtml" method="post">
<#--列表参数-->
		<input type="hidden" name="id" id="id" value="">
		<input type="hidden" name="weekRecord.id" id="weekRecord.id" value="">
		<input type="hidden" name="domainFileName" id="domainFileName" value="${(domainFileName)?if_exists}"/>
		<input type="hidden" name="propConfigName" id="propConfigName" value="${(propConfigName)?if_exists}"/>
		<input type="hidden" name="weekFormId" id="weekFormId" value="">
		<input type="hidden" name="editState" id="editState" value="${(editState)?if_exists}">
		<input type="hidden" name="statusType" id="statusType" value="${(statusType)?if_exists}">
		<input type="hidden" name="weekReview.applyType" id="weekReview.applyType" value="">
		<input type="hidden" name="isFormSubmitSuccess" id="isFormSubmitSuccess" value="${(isFormSubmitSuccess)?if_exists}">
		<input type="hidden" name="isFromSysPendings" id="isFromSysPendings" value="${(isFromSysPendings)?if_exists}">
		<input type="hidden" name="fromType" id="fromType" value="1">
	<#-- 隐藏域，用于记录本列表数据的的上级，根据情况看是否需要 -->
	<#--	<input type="hidden" name="wfStepUser.wfStepUser.id" value="${(wfStepUser.wfStepUser.id)?if_exists}">	-->
		<div id="mainDiv">
			<div id="topDiv">
				<#-- 生成按钮及表格数据 -->
				<#include "/common/pager_style/pageButtons.ftl" encoding="UTF-8">
			</div><!-- end #topDiv -->
			<div id="centerDiv">
			<#if listState?exists && listState=="query">
			<#else>
				<div id="selectButton" height="98%">
					<fieldSet>
						<legend class="icon_warning">筛选条件</legend>
						<@pEdit.pageEditText
							label="标题："
							pageState="modify"
							TR="false"
							TD="false"
							cssStyle="width:10%;"
							attName="filter_LIKES_a@weekRecord@title"
							attValue="${(filter_LIKES_a@weekRecord@title)?if_exists}"
						/>
						<@pEdit.pageEditText
							label="发文单位："
							pageState="modify"
							TR="false"
							TD="false"
							cssStyle="width:10%;"
							attName="filter_LIKES_a@weekRecord@lwUnit@name"
							attValue="${(filter_LIKES_a@weekRecord@lwUnit@name)?if_exists}"
						/>
						<@pEdit.pageEditText
							label="主办单位："
							pageState="modify"
							TR="false"
							TD="false"
							cssStyle="width:10%;"
							attName="filter_LIKES_a@weekRecord@swUnit@name"
							attValue="${(filter_LIKES_a@weekRecord@swUnit@name)?if_exists}"
						/>
						<@pEdit.pageEditSelectUserValue
							label="状态："
							pageState="modify"
							TR="false"
							TD="false"
							attName="filter_EQI_a@weekRecord@timeoutStatus"
							attValue="${(filter_EQI_a@weekRecord@timeoutStatus)?if_exists}"
							optionSource={"0":"正常","1":"预警","2":"已超期"}
						/>
						<#if statusType='3'&&editState='newdb'>
						<@pEdit.pageEditSelectUserValue
							label="当前进展："
							pageState="modify"
							TR="false"
							TD="false"
							attName="filter_EQI_a@weekRecord@status"
							attValue="${(filter_EQI_a@weekRecord@status)?if_exists}"
							optionSource={"0":"草稿","1":"办理中","2":"已反馈"}
						/>
						<#else>
						<@pEdit.pageEditSelectUserValue
							label="当前进展："
							pageState="modify"
							TR="false"
							TD="false"
							attName="filter_EQI_a@weekRecord@status"
							attValue="${(filter_EQI_a@weekRecord@status)?if_exists}"
							optionSource={"0":"草稿","1":"办理中","2":"已反馈","3":"已办结","4":"拒绝办理","5":"签发"}
							/>
						</#if>
						
						<@pEdit.pageEditSelectUserValue
							label="审核类型："
							pageState="modify"
							TR="false"
							TD="false"
							attName="filter_EQI_a@weekRecord@speStatus"
							attValue="${(filter_EQI_a@weekRecord@speStatus)?if_exists}"
							optionSource={"1":"延期审核","2":"不同意件审核"}
						/>
					  	<input type="button" value="&nbsp;&nbsp;检&nbsp;&nbsp;索&nbsp;&nbsp;" onclick="do_filter();return false;">
					</fieldSet>
				</div>
			</#if>
				<div id="body">
					<!--	开始生成页面数据表格	-->
					<#import "/common/pager_style/pager.ftl" as comPager><#-- 生成列表页面的ftl模板文件	 -->
						<@comPager.pager page=(page)?if_exists title="" skin=skin/>
					<!--	页面数据表格生成结束	-->
				</div><!-- end #body -->
			</div><!-- end #centerDiv -->
		</div><!-- end #mainDiv -->
		<div id="removeData" style="display:none;">
			<ol style="margin:0px; padding:0px;">
			<dl>
				<dt>
					<span style="padding-left:50px; text-align:left;font-weight:bold;">请填写销毁原因：</span>
				</dt>
				<dt style="padding-left:50px;">
					<textarea name="operateReason" id="testOperateReason" style="width:450px;height:200px;overflow-y:auto;"></textarea>
				</dt>
			</dl>
		   </ol>
		 </div>
		
	</form>
</body>

<script>
$(function(){
	$(".tbl_list span[name='weekRecord\\.wfEntityId']").each(function(i){
		var wfEntityId=$(this).html();
		if(!isEmpty(wfEntityId)&&$(this).html()!='&nbsp;'){
			$(this).parents("tr").css({"background":"#FFE4C4"});
		}
	});
});
</script>
<!--================	[转成新流程时的相关信息	====================-->
	<div id="optConvert" style="display:none;">
					<table class="tbl">
			<tbody>
		  		<tr>
		    		<th width="20%">请选择收文流程：</th>
				    <td width="80%">&nbsp;
					    <select style="width:80%" id="wfDefineInfoId" name="wfDefineInfoId">
					    </select>
				   </td>
		  		</tr>
		  	</tbody>
		</table>
	</div>
</body>
</html>